package com.example.order;

import com.example.order.entity.Result;
import com.example.order.entity.TradeGoods;
import com.example.order.entity.TradeGoodsNumberLog;

/**
 * @Author: songyahui
 * @Date: 2020/11/10 18:03
 * @Version 1.0
 */
public interface IGoodsService {
    public TradeGoods findOne(Long goodsId);
    public int insert(TradeGoods goods);
    /**
     * 扣减库存
     * @param goodsNumberLog
     * @return
     */
    public Result reduceGoodsNum(TradeGoodsNumberLog goodsNumberLog);
}
